//
//  SchoolModel.m
//  MY_IGList_demo
//
//  Created by mac on 2019/3/20.
//  Copyright © 2019 Yilian. All rights reserved.
//

#import "SchoolModel.h"

@implementation SchoolModel
- (nonnull id<NSObject>)diffIdentifier {
    NSString *str = [NSString stringWithFormat:@"%@%@",self.name,self.desc];
    return str;
}

- (BOOL)isEqualToDiffableObject:(nullable id<IGListDiffable>)object {
    if (object == self) {
        return YES;
    }
    SchoolModel *model = (SchoolModel *)object;
    
    return _name == model.name && _level == model.level && _desc == model.desc;
}

@end
